Select
  *
From
  (Select
    Relation.Name,
    RelationAccount.AccountNrWithoutDots,
    Count([Transaction].id) As Aantal
  From
    (RelationAccount Left Join
    [Transaction] On RelationAccount.AccountNrWithoutDots = [Transaction].RelationAccountWithoutDots) Inner Join
    Relation On RelationAccount.FKRelation = Relation.id
  Group By
    Relation.Name, RelationAccount.AccountNrWithoutDots)
Where
  Aantal > 0
